script "upgrade shared distribution points"

Hi

We have about 400 SCCM 2007 Secondary Sites and need to migrate them to SCCM 2012 SP1 Distribution Points. As you can image we don't want to click 400 times during migration wizard.

Is there a way to script the upgrade of all shared distribution point? e.g. powershell or SDK (C# or VBScript)

Many, many thanks in advance,

Wolfgang

April 23rd, 2013 11:53pm

Hi,

You dont need to use custom script for that task. We have Start-CMDistributionPointUpgrade cmdlet. You can check all the cmdlets from here - http://blog.coretech.dk/kaj/system-center-2012-configuration-manager-sp1-cumulative-update-1-powershell-parameter-sets-excel-sheet/

Best,

Kaido

Free Windows Admin Tool Kit Click here and download it now
April 25th, 2013 5:30am

Hi,

You dont need to use custom script for that task. We have Start-CMDistributionPointUpgrade cmdlet. You can check all the cmdlets from here - http://blog.coretech.dk/kaj/system-center-2012-configuration-manager-sp1-cumulative-update-1-powershell-parameter-sets-excel-sheet/

Best,

Kaido

April 25th, 2013 5:30am

Has anyone used this cmdlet yet?  The examples help file is, ahem, lacking...

NAME
    Start-CMDistributionPointUpgrade

ALIASES
    None


REMARKS
    Get-Help cannot find the Help files for this cmdlet on this computer. It is displaying only partial help.
        -- To download and install Help files for the module that includes this cmdlet, use Update-Help.

Free Windows Admin Tool Kit Click here and download it now
April 30th, 2013 5:50pm

Try with "update-help" (see REMARKS)...

I get following short information:

NAME
    Start-CMDistributionPointUpgrade

SYNTAX
    Start-CMDistributionPointUpgrade -SiteCode <string> -SharedDistributionPoint <IResultObject#SMS_MigrationDP>
    -CertificateExpirationTimeUtc <datetime> -AllowPreStaging <bool> [-PublicFqdn <IResultObject#SMS_MigrationDP>]
    [-InstallationAccount <IResultObject#SMS_SCI_Reserved>] [-InitiateConnection <bool>] [-InstallInternetServer
    <bool>] [-ClientConnectionType <ClientConnectionTypes> {Intranet | Internet | InternetAndIntranet}]
    [-EnableAnonymous <bool>] [-MinFreeSpaceMB <int>] [-PrimaryContentLibraryLocation <DriveType> {Automatic | A | B |
    C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z}]
    [-SecondaryContentLibraryLocation <DriveType> {Automatic | A | B | C | D | E | F | G | H | I | J | K | L | M | N |
    O | P | Q | R | S | T | U | V | W | X | Y | Z}] [-PrimaryPackageShareLocation <DriveType> {Automatic | A | B | C |
    D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z}]
    [-SecondaryPackageShareLocation <DriveType> {Automatic | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O
    | P | Q | R | S | T | U | V | W | X | Y | Z}] [-EnablePxeSupport <bool>] [-AllowRespondIncomingPxeRequest <bool>]
    [-EnableUnknownComputerSupport <bool>] [-ComputersUsePxePassword <securestring>] [-UserDeviceAffinity
    <UserDeviceAffinityType> {DoNotUse | AllowWithManualApproval | AllowWithAutomaticApproval}]
    [-MacAddressForRespondingPxeRequest <string[]>] [-PxeServerResponseDelaySeconds <int>] [-ValidateContentSchedule
    <IResultObject#SMS_ST_RecurWeekly>] [-ContentValidationPriority <Priority> {Lowest | Low | Medium | High |
    Highest}] [-BoundaryGroup <IResultObject#SMS_BoundaryGroup[]>] [-AllowFallbackForContent <bool>]
    [-PathForSavingMigratedPackage <string>] [-WhatIf] [-Confirm]  [<CommonParameters>]

    Start-CMDistributionPointUpgrade -SiteCode <string> -SharedDistributionPoint <IResultObject#SMS_MigrationDP>
    -CertificatePath <string> -AllowPreStaging <bool> [-PublicFqdn <IResultObject#SMS_MigrationDP>]
    [-InstallationAccount <IResultObject#SMS_SCI_Reserved>] [-InitiateConnection <bool>] [-InstallInternetServer
    <bool>] [-ClientConnectionType <ClientConnectionTypes> {Intranet | Internet | InternetAndIntranet}]
    [-EnableAnonymous <bool>] [-CertificatePassword <securestring>] [-ForceWhenDuplicateCertificate <bool>]
    [-MinFreeSpaceMB <int>] [-PrimaryContentLibraryLocation <DriveType> {Automatic | A | B | C | D | E | F | G | H | I
    | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z}] [-SecondaryContentLibraryLocation
    <DriveType> {Automatic | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W
    | X | Y | Z}] [-PrimaryPackageShareLocation <DriveType> {Automatic | A | B | C | D | E | F | G | H | I | J | K | L
    | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z}] [-SecondaryPackageShareLocation <DriveType> {Automatic |
    A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z}]
    [-EnablePxeSupport <bool>] [-AllowRespondIncomingPxeRequest <bool>] [-EnableUnknownComputerSupport <bool>]
    [-ComputersUsePxePassword <securestring>] [-UserDeviceAffinity <UserDeviceAffinityType> {DoNotUse |
    AllowWithManualApproval | AllowWithAutomaticApproval}] [-MacAddressForRespondingPxeRequest <string[]>]
    [-PxeServerResponseDelaySeconds <int>] [-ValidateContentSchedule <IResultObject#SMS_ST_RecurWeekly>]
    [-ContentValidationPriority <Priority> {Lowest | Low | Medium | High | Highest}] [-BoundaryGroup
    <IResultObject#SMS_BoundaryGroup[]>] [-AllowFallbackForContent <bool>] [-PathForSavingMigratedPackage <string>]
    [-WhatIf] [-Confirm]  [<CommonParameters>]


ALIASES
    None


REMARKS
    Get-Help cannot find the Help files for this cmdlet on this computer. It is displaying only partial help.
        -- To download and install Help files for the module that includes this cmdlet, use Update-Help.

May 1st, 2013 6:52am

Yep, I've done and seen that.  However, there doesn't seem to be an example available.
Free Windows Admin Tool Kit Click here and download it now
May 1st, 2013 5:42pm

Another thing to think about is you can only upgrade one Secondary site at a time, the rest will queue up and wait for the previous upgrade to complete.  If you don't mind when they upgrade, automation would certainly be the way to go.

From here:  http://technet.microsoft.com/en-us/library/gg712275.aspx

May 1st, 2013 7:13pm

Bump.

Has ANYONE ever used this cmdlet???  I agree with Derek's assessment.  The help tells you to create an object for the shared distribution point using the Get-CMDistributionPoint cmdlet, but I have yet to figure out a way to do that.  Can someone at Microsoft post a meaningful example?

The example provided (snippet from Start-CMDistributionPointUpgrade help below) is useless to me.  I can't find any association between DP Groups and Shared DPs to even know which GUID to pass into this.  What gives?  Does the example even work?  Was this tested at all?

>>The first command gets the distribution point object that has the ID 6617708D-0F98-4898-8D05-9E882C23DCB2, and stores the object in the $CIObj variable.

>>PS C:\> $CIObj = Get-CMDistributionPoint -DistributionPointGroupId "{6617708D-0F98-4898-8D05-9E882C23DCB2}"

I have a suspicion that the Start-CMDistributionPointUpgrade cmdlet would work fine if I could just get the right "IResultObject" for the Shared DP.

Free Windows Admin Tool Kit Click here and download it now
October 28th, 2013 8:21pm

I find myself in the exact same spot.

The example refers to the IResultObject, but I am unsure how to easily gather this data.

I have about 800 Distribution Points I'd like to scrip the upgrade steps, don't care if it queue's up or not, just don't want to do this manually.

November 4th, 2013 11:17pm

As a further follow up...I tried the below:

$CIObj = Get-CMDistributionPoint -SiteSystemServerName "FQDN.of.Server"

Then I followed that command with this:

Start-CMDistributionPointUpgrade -MinFreeSpaceMB "250" -PrimaryContentLibraryLocation "D" -PrimaryPackageShareLocation "D" -SharedDistributionPoint "$CIObj" -SiteCode "XXX" -Whatif

AND...it now recognizes the correct Distribution Point, but I get a very large error.

Start-CMDistributionPointUpgrade : Cannot bind parameter 'SharedDistributionPoint'. Cannot convert the
"[SecurityVerbs(-1)]
instance of SMS_SCI_SysResUse

Followed by a lot of information about the DP, including the correct FQDN and essentially all of its properties.

Free Windows Admin Tool Kit Click here and download it now
November 4th, 2013 11:32pm

Looks like we're in the same boat.  I might open a case with Premier.

I appreciate the feedback and will post whatever I'm able to find out.

November 6th, 2013 8:09pm

Looks like we're in the same boat.  I might open a case with Premier.

I appreciate the feedback and will post whatever I'm able to find out.

Please do, this is not the first cmdlet I've found that doesn't actually work, and when you ask about that, you are greeted with silence :(

The other one I was attempting was Remove-CMContentDistribution, which is in the list, but doesn't seem to actually exist.

Free Windows Admin Tool Kit Click here and download it now
November 20th, 2013 4:38pm

Did you even get an answer/solution on this?
April 15th, 2014 2:17pm

Hello Andozane,

Did you found any solution for this.

Free Windows Admin Tool Kit Click here and download it now
May 29th, 2015 9:34am

No, sadly this ended being a manual process.
June 1st, 2015 1:23pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics